package com.felight.ems.strings;
class StrBufBuild{
		static int N=77777777;
		static long t;
	public static void main(String[] args){
		
		{
			StringBuffer sb = new StringBuffer();
			t = System.currentTimeMillis();
			for(int i=N;i --> 0;){
				sb.append("");
			}
			System.out.println(System.currentTimeMillis()-t);
		}
		strbuild();
	}
	synchronized static void strbuild(){
			StringBuilder sb = new StringBuilder();
			t = System.currentTimeMillis();
			for(int i=N;i --> 0;){
				sb.append("");
			}
			System.out.println(System.currentTimeMillis()-t);
	}
}